<?php
require_once ('./View/NavView.php');

class NavController{
	
	private $isLoggedIn = false;
	private $navView = null;
	/*
	 * returnerar aktuell meny kod baserat på loginstatus
	 * 
	 * @return string HTML
	 */
	public function DoControll(){
		$this->navView = new NavView();
		return $this->navView->DoNavigationBox($this->isLoggedIn);
	}
	//returnerar aktuell page
	public function GetPage(){
		return $this->navView->GetPage();
	}
	//sätter loginstatus
	public function SetLoginStatus($status = false){
		$this->isLoggedIn = $status;
	}
	//returnerar loginstatus
	public function GetLoginStatus(){
		return $this->isLoggedIn;
	}
}
?>